package thread;

/**
 * Title：测试多线程
 * Description：
 * Created by Myth on 4/17/2017.
 */

public class MultipleThreads {
    public static void main(String[] args) {
        ThreadA threadA1 = new ThreadA("线程A-1");
        ThreadA threadA2 = new ThreadA("线程A-2");
        ThreadA threadA3 = new ThreadA("线程A-3");
        ThreadB threadB1 = new ThreadB("线程B-1");
        ThreadB threadB2 = new ThreadB("线程B-2");
        ThreadB threadB3 = new ThreadB("线程B-3");
        threadA1.start();
        threadA2.start();
        threadA3.start();
        new Thread(threadB1).start();
        new Thread(threadB2).start();
        new Thread(threadB3).start();
    }
}
